package user;

import book.BookList;
import operation.IOpreation;

public abstract class User {
    protected String name;
    protected IOpreation[] iopreations;

    public void User() {

        this.name = name;
    }
    public abstract int  menu(); //返回值为int方便接收菜单选项
    public void doOperation(int choice, BookList bookList) {
    IOpreation iOpreation= this.iopreations[choice];
    iOpreation.work(bookList);
    }
}